#include "cell_record.h"
#include "ui_cell_record.h"

Cell_record::Cell_record(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Cell_record)
{
    ui->setupUi(this);

    //设置tableView无法编辑
    ui->tableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
    //设置tableView只能选择单行
    ui->tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
}

Cell_record::~Cell_record()
{
    delete ui;
}
